<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>结算</title>
	<link rel="stylesheet" href="__PUBLIC__/Mobile/css/bootstrap.css"/>
	<link rel="stylesheet" href="__PUBLIC__/Mobile/css/zhanghou.css">
	<script src="__PUBLIC__/Mobile/js/jquery-1.9.1.js"></script>
	<script src="__PUBLIC__/Mobile/js/97zzw.js"></script>
	<script src="__PUBLIC__/Mobile/js/jquery.flexslider-min.js"></script>
	<script src="__PUBLIC__/Mobile/layer/layer.min.js"></script>
</head>

<body>
<section>
<!--结算-->
<form action="{:U('Tourism/place_order')}" method="post" onsubmit="return check();">
<div class="lm">
	<span class="left" style="width:13%;">
		<a href="javascript:history.back(-1);">
			<img src="__PUBLIC__/Mobile/images/cls_left1s.png" style="height:23px; line-height:23px; width:25%;">
		</a> 
	</span>
    <span class="left size20" style="width:72%; padding-right:15%;">旅游结算 </span>
</div>
<div class="Clearing">
	<if condition="$find eq ''">
		<div class="Receiving">
	    	<a href="{:U('Goods/address_add')}">新建地址</a>
	    </div>
    <else />
    	<div style="min-height:40px; padding:10px 0 5px 20px; background:#FFF;">
		    	<p style="font-size:16px;">联系人：<input type="text" style="border:1px solid #CCC; padding-left:4px;" name="realname" value="{$find.realname}"/> 
		    	<br/><br/> 手机号：<input type="text" style="border:1px solid #CCC; padding-left:4px;" name="mobile" value="{$find.mobile}" /></p>
	    </div>
    </if>
  <div class="manner">
    	<h3>支付方式</h3>
    	<if condition="$weixin['isok'] eq 1">
	  		<a href="javascript:;" class="hvoer" id="1">
		  		<strong>&nbsp;</strong>
		  		<b>
		  			<img style="width:60px; height:60px; margin:5px;" src="__PUBLIC__/Mobile/images/Micro.png">
		  		</b>
		        <span>
			        <p class="size18">微信支付</p>
			        <p class="gray">推荐已在微信中绑定银行卡的用户使用</p>
		        </span>
	        </a>
	   <else />
	        <a href="javascript:;" class="pays hvoer" id="2">
		        <strong>&nbsp;</strong>
		        <b>
		        	<img src="__PUBLIC__/Mobile/images/Alipay.png">
		        </b>
		        <span>
			        <p class="size18">支付宝</p>
			        <p class="gray">安全快捷，可支持银行卡支付</p>
		        </span>
	        </a>
	   </if>
    </div>
	
	  <div class="manner ">
	   	  <h3>订单信息</h3>
	        <ul>

				<input type="hidden" name="address_id" id="address_id" value="{$find.id}">
				<foreach name="goods_data" item="vo">
		            <li>
			            <b>
			            	<img src="__PUBLIC__/Uploads/goods/{$vo.goods_pic}">
							
			            </b>
			            <strong style="width:65%;">{$vo.goods_title}<br/></strong>

			            <input type="hidden" name="chufa_address[]" value="{$vo.chufa_address}">
			            <input type="hidden" name="pic_url[]" value="{$vo.goods_pic}">
						<input type="hidden" name="goods_title[]" value="{$vo.goods_title}">
						<input type="hidden" name="goods_id[]" value="{$vo.goods_id}">
						<input type="hidden" name="chufa_date[]" value="{$vo.chufa_date}">
						<input type="hidden" name="fanli_jifen[]" value="{$vo.fanli_jifen}">

						<input type="hidden" name="chufa_price[]" value="{$vo.chufa_price}">
						<input type="hidden" name="chufa_price_et[]" value="{$vo.chufa_price_et}">
			           
						<input type="hidden" name="goods_num[]" value="{$vo.goods_num}">
						<input type="hidden" name="goods_num_et[]" value="{$vo.goods_num_et}">
			            
		            </li>
		            <li>
		<div style="font-size:16px; border-bottom:1px solid #CCC;">送：{$vo.goods_num} * {$vo.fanli_jifen} = {$vo['fanli_jifen'] * $vo['goods_num']} 积分<br/>出发城市: {$vo.chufa_address}<br/>出发日期：{$vo.chufa_date}</div>
		<div style="font-size:16px;">成人 : {$vo.goods_num} 人 * {$vo.chufa_price} 元 = {$vo['goods_num'] * $vo['chufa_price']} 元 (小计)</div>
		<div style="font-size:16px;">儿童 : {$vo.goods_num_et} 人 * {$vo.chufa_price_et} 元 = {$vo['goods_num_et'] * $vo['chufa_price_et']} 元 (小计)</div>
						<span>
				            
						

			            </span>
		            </li>
	           </foreach>
	        </ul>
		  	<input type="hidden" name="price_sum" value="{$vo['goods_num'] * $vo['chufa_price'] + $vo['goods_num_et'] * $vo['chufa_price_et']}">
	        <p class="Subtotal"><span class="gray">合计金额：</span><span class="Orange size22">￥{$vo['goods_num'] * $vo['chufa_price'] + $vo['goods_num_et'] * $vo['chufa_price_et']}元</span></p>
	  </div>  
</div>
<div style="height:10px;"></div>
<div class="use">
	<!-- <a href="#" class="cart-select " style="padding:0">&nbsp;</a> -->
	
	<!-- 积分模块 -->
		<if condition="$grade neq '合伙人'">
		<input name="jfa" value="0" type="hidden">
		<div><span> 使用B积分账户：</span><input name="jfb" value="0" type="number"><span></span></div>
		<div><span style="font-weight:bold;">账户积分余额:</span>&nbsp;&nbsp;<span class="Orange">A账户:{$jfa|default=0}</span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="Orange">B账户:{$jfb|default=0}</span></div>
		<else/>
		<input name="jfa" value="0" type="hidden"><input name="jfb" value="0" type="hidden">
		</if>


	</div>
<div class="Navigation-Navigation">
   <span class="Handle size18"><b class=" Orange">应付:￥{$price_sum}元</b>
   </span>


<button type="submit" class="Pay size18" style="border: none; outline: none; float:right;">支付</button>

</div>
	</form>
</section>
<script>
	$(".pays").click(function(){
		$(this).siblings().removeClass("hvoer").end().addClass ("hvoer");
	});

	function check(){
		var address_id = $('#address_id').val();
		if(address_id==''){
			layer.msg('您还没有填写地址');
			return false;
		}	
		return true;
	}

</script>
</body>
</html>
